package main.chapter5.inheritance;/**
 * @Author xy
 * @Date 2020/6/14 17:19
 * @Description
 */

/**
 * 文件名称： main.chapter5.inheritance.ManagerTest.java</br>
 * 初始作者： xy</br>
 * 创建日期： 2020/6/14 17:19</br>
 * 功能说明： TODO <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 * Copyright (c) 2020-2021 .All rights reserved.<br/>
 */
public class ManagerTest {
    public static void main(String[] args) {
        Manager boss = new Manager("Carl Cracker",80000,1987,12,15);
        boss.setBonus(5000);

        Employee[] staff = new Employee[3];

        staff[0] = boss;
        staff[1] = new Employee("Harry Hacker",50000,1989,10,1);
        staff[2] = new Employee("Tommy Tester",40000,1990,3,15);
        for (Employee e: staff){
            System.out.println("name="+e.getName()+",salary="+e.getSalary());
        }
    }
}
